package com.example.webdemo.model;

import com.fasterxml.jackson.annotation.JsonFormat;

import java.util.Date;
/**
 * @description:  用户信息
 * @author zp
 * @date: 2023/7/31 19:48
 */
public class UserInfo {
    private Integer id;

    private String phone;

    private String token;

    private String photo;

    private String userName;

    private Integer artCount;

    private Integer followCount;

    private Integer fansCount;
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    private Date createTime;
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    private Date updateTime;

    public Integer getId() {
        return id;
    }

    public void setId(Integer id) {
        this.id = id;
    }

    public String getPhone() {
        return phone;
    }

    public void setPhone(String phone) {
        this.phone = phone == null ? null : phone.trim();
    }

    public String getToken() {
        return token;
    }

    public void setToken(String token) {
        this.token = token == null ? null : token.trim();
    }

    public String getPhoto() {
        return photo;
    }

    public void setPhoto(String photo) {
        this.photo = photo == null ? null : photo.trim();
    }

    public String getUserName() {
        return userName;
    }

    public void setUserName(String userName) {
        this.userName = userName == null ? null : userName.trim();
    }

    public Integer getArtCount() {
        return artCount;
    }

    public void setArtCount(Integer artCount) {
        this.artCount = artCount;
    }

    public Integer getFollowCount() {
        return followCount;
    }

    public void setFollowCount(Integer followCount) {
        this.followCount = followCount;
    }

    public Integer getFansCount() {
        return fansCount;
    }

    public void setFansCount(Integer fansCount) {
        this.fansCount = fansCount;
    }

    public Date getCreateTime() {
        return createTime;
    }

    public void setCreateTime(Date createTime) {
        this.createTime = createTime;
    }

    public Date getUpdateTime() {
        return updateTime;
    }

    public void setUpdateTime(Date updateTime) {
        this.updateTime = updateTime;
    }

    @Override
    public String toString() {
        return "UserInfo{" +
                "id=" + id +
                ", phone='" + phone + '\'' +
                ", token='" + token + '\'' +
                ", photo='" + photo + '\'' +
                ", userName='" + userName + '\'' +
                ", artCount=" + artCount +
                ", followCount=" + followCount +
                ", fansCount=" + fansCount +
                ", createTime=" + createTime +
                ", updateTime=" + updateTime +
                '}';
    }
}